package com.bracketbird.client.gui.club.tournament;


import com.google.gwt.user.client.ui.*;
import com.bracketbird.clientcore.gui.*;
import com.bracketbird.clientcore.style.*;

/**
 *
 */
public class TipsPopup extends PopupPanel {
    private SimplePanelComponent content;

    public TipsPopup() {
        super();

        init();
        

    }


    public TipsPopup(boolean b, boolean b1) {
        super(b,b1);
        init();

    }



    private void init() {
        VerticalComponent vc = new VerticalComponent();
        add(vc);

        HorizontalComponent hc = new HorizontalComponent();
        hc.add(getContent());
        hc.add(new SimplePanelComponent(), new TextLayout("90%", "6px", Horizontal.RIGHT, Vertical.BOTTOM).backgroundGrey());
        vc.add(hc, new TextLayout("100px", "100px").backgroundBase());
        vc.add(new SimplePanelComponent(), new TextLayout("6px", "90%", Horizontal.RIGHT, Vertical.BOTTOM).backgroundGrey());
    }

    public SimplePanelComponent getContent() {
        if (content == null) {
            content = new SimplePanelComponent();
        }
        return content;
    }


    public void add(Widget w){
        getContent().add(w);
    }
}
